home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / DriverSynchronization.a < prev    next >
Encoding:
Text File  |  1998-02-12  |  4.0 KB  |  187 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        DriverSynchronization.a
  3. ;
  4. ;    Contains:    Driver Synchronization Interfaces.
  5. ;
  6. ;    Version:    Technology:    MacOS
  7. ;                Release:    Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__DRIVERSYNCHRONIZATION__') = 'UNDEFINED' THEN
  19. __DRIVERSYNCHRONIZATION__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  25.     include 'MacTypes.a'
  26.     ENDIF
  27.  
  28. ;
  29. ; extern void SynchronizeIO(void )
  30. ;
  31.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  32.         _SynchronizeIO:    OPWORD    $4E71
  33.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  34.         IMPORT_CFM_FUNCTION SynchronizeIO
  35.     ENDIF
  36.  
  37. ;
  38. ; extern Boolean CompareAndSwap(UInt32 oldVvalue, UInt32 newValue, UInt32 *OldValueAdr)
  39. ;
  40.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  41.         IMPORT_CFM_FUNCTION CompareAndSwap
  42.     ENDIF
  43.  
  44. ;
  45. ; extern Boolean TestAndClear(UInt32 bit, UInt8 *startAddress)
  46. ;
  47.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  48.         IMPORT_CFM_FUNCTION TestAndClear
  49.     ENDIF
  50.  
  51. ;
  52. ; extern Boolean TestAndSet(UInt32 bit, UInt8 *startAddress)
  53. ;
  54.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  55.         IMPORT_CFM_FUNCTION TestAndSet
  56.     ENDIF
  57.  
  58. ;
  59. ; extern SInt8 IncrementAtomic8(SInt8 *value)
  60. ;
  61.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  62.         IMPORT_CFM_FUNCTION IncrementAtomic8
  63.     ENDIF
  64.  
  65. ;
  66. ; extern SInt8 DecrementAtomic8(SInt8 *value)
  67. ;
  68.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  69.         IMPORT_CFM_FUNCTION DecrementAtomic8
  70.     ENDIF
  71.  
  72. ;
  73. ; extern SInt8 AddAtomic8(SInt32 amount, SInt8 *value)
  74. ;
  75.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  76.         IMPORT_CFM_FUNCTION AddAtomic8
  77.     ENDIF
  78.  
  79. ;
  80. ; extern UInt8 BitAndAtomic8(UInt32 mask, UInt8 *value)
  81. ;
  82.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  83.         IMPORT_CFM_FUNCTION BitAndAtomic8
  84.     ENDIF
  85.  
  86. ;
  87. ; extern UInt8 BitOrAtomic8(UInt32 mask, UInt8 *value)
  88. ;
  89.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  90.         IMPORT_CFM_FUNCTION BitOrAtomic8
  91.     ENDIF
  92.  
  93. ;
  94. ; extern UInt8 BitXorAtomic8(UInt32 mask, UInt8 *value)
  95. ;
  96.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  97.         IMPORT_CFM_FUNCTION BitXorAtomic8
  98.     ENDIF
  99.  
  100. ;
  101. ; extern SInt16 IncrementAtomic16(SInt16 *value)
  102. ;
  103.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  104.         IMPORT_CFM_FUNCTION IncrementAtomic16
  105.     ENDIF
  106.  
  107. ;
  108. ; extern SInt16 DecrementAtomic16(SInt16 *value)
  109. ;
  110.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  111.         IMPORT_CFM_FUNCTION DecrementAtomic16
  112.     ENDIF
  113.  
  114. ;
  115. ; extern SInt16 AddAtomic16(SInt32 amount, SInt16 *value)
  116. ;
  117.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  118.         IMPORT_CFM_FUNCTION AddAtomic16
  119.     ENDIF
  120.  
  121. ;
  122. ; extern UInt16 BitAndAtomic16(UInt32 mask, UInt16 *value)
  123. ;
  124.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  125.         IMPORT_CFM_FUNCTION BitAndAtomic16
  126.     ENDIF
  127.  
  128. ;
  129. ; extern UInt16 BitOrAtomic16(UInt32 mask, UInt16 *value)
  130. ;
  131.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  132.         IMPORT_CFM_FUNCTION BitOrAtomic16
  133.     ENDIF
  134.  
  135. ;
  136. ; extern UInt16 BitXorAtomic16(UInt32 mask, UInt16 *value)
  137. ;
  138.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  139.         IMPORT_CFM_FUNCTION BitXorAtomic16
  140.     ENDIF
  141.  
  142. ;
  143. ; extern SInt32 IncrementAtomic(SInt32 *value)
  144. ;
  145.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  146.         IMPORT_CFM_FUNCTION IncrementAtomic
  147.     ENDIF
  148.  
  149. ;
  150. ; extern SInt32 DecrementAtomic(SInt32 *value)
  151. ;
  152.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  153.         IMPORT_CFM_FUNCTION DecrementAtomic
  154.     ENDIF
  155.  
  156. ;
  157. ; extern SInt32 AddAtomic(SInt32 amount, SInt32 *value)
  158. ;
  159.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  160.         IMPORT_CFM_FUNCTION AddAtomic
  161.     ENDIF
  162.  
  163. ;
  164. ; extern UInt32 BitAndAtomic(UInt32 mask, UInt32 *value)
  165. ;
  166.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  167.         IMPORT_CFM_FUNCTION BitAndAtomic
  168.     ENDIF
  169.  
  170. ;
  171. ; extern UInt32 BitOrAtomic(UInt32 mask, UInt32 *value)
  172. ;
  173.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  174.         IMPORT_CFM_FUNCTION BitOrAtomic
  175.     ENDIF
  176.  
  177. ;
  178. ; extern UInt32 BitXorAtomic(UInt32 mask, UInt32 *value)
  179. ;
  180.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  181.         IMPORT_CFM_FUNCTION BitXorAtomic
  182.     ENDIF
  183.  
  184.  
  185.     ENDIF ; __DRIVERSYNCHRONIZATION__ 
  186.  
  187.